﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Marmat.Forms.Skin
{

    /// <summary>
    /// 窗体按钮项的点击事件的事件数据
    /// </summary>
    public class FormButtonClickEventArgs : EventArgs
    {
        /// <summary>
        /// 构建实例对象。
        /// </summary>
        /// <param name="item"></param>
        public FormButtonClickEventArgs(FormButton item,System.Drawing.Rectangle clientRectangle)
        {
            this.Item = item;
            ClientRectangle = clientRectangle;
        }

        /// <summary>
        /// 当前项。
        /// </summary>
        public FormButton Item { get; }

        /// <summary>
        /// 获取表示控件的工作区的矩形。
        /// </summary>
        public Rectangle ClientRectangle { get; }
    }
}
